emojichooser: Add style class to emoji toolbar
authorTimm Bäder <mail@baedert.org>
Wed, 19 Feb 2020 17:13:55 +0000 (18:13 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 20 Feb 2020 09:23:09 +0000 (10:23 +0100)
Closes #1013

gtk/gtkemojichooser.c
gtk/ui/gtkemojichooser.ui

index 36d3e35cfce09fc6afc530579c011f6dbaed1314..641cd33438dd28359e46617c112dcc17cd925d04 100644 (file)
  *
  * GtkEmojiChooser emits the #GtkEmojiChooser:emoji-picked signal when an
  * Emoji is selected.
+ *
+ * # CSS nodes
+ * |[<!-- language="plain" -->
+ * popover
+ * ╰── box.emoji-toolbar
+ *     ├── button.iamge-button.emoji-section
+ *     ├── ...
+ *     ╰── button.image-button.emoji-section
+ * ]|
+ *
+ * Every #GtkEmojiChooser consists of a main node called popover.
+ * The contents of the popover are largely implementation defined
+ * and supposed to inherit general styles.
+ * The bottom toolbar used to switch between different emoji categories
+ * consists of buttons with the .emoji-section style class and gets the
+ * .emoji-toolbar style class itself.
+ *
  */
 
 #define BOX_SPACE 6
index aab66760826a2fcff58d415568cc5ba7f424ee92..35f335b1ba17b8548a1a769f45a699ce1e7875cb 100644 (file)
                     </child>
                     <child>
                       <object class="GtkBox">
+                        <style>
+                          <class name="emoji-toolbar" />
+                        </style>
                         <child>
                           <object class="GtkButton" id="recent.button">
                             <property name="relief">none</property>